package vo;

import org.hibernate.Session;
import org.hibernate.Transaction;

import util.HibernateUtil;

public class PessoaDAO {
	public void salvarPessoa(PessoaVO pessoa) {

		Transaction transaction = null;

		Session session = HibernateUtil.currentSession();
		transaction = session.beginTransaction();

		session.saveOrUpdate(pessoa);

		transaction.commit();

	}

}
